-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn item hold effects into an enum #5498
Conversation
include/constants/hold_effects.h
Outdated
#define HOLD_EFFECT_METAL_POWDER 64 | ||
#define HOLD_EFFECT_THICK_CLUB 65 | ||
#define HOLD_EFFECT_LEEK 66 | ||
enum ItemHoldEffects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd call this enum ItemHoldEffect
. I think this makes more sense when it comes to variables, e.g. Foo(enum ItemHoldEffect effect)
takes a single effect, not multiple effects.
I haven't checked, but if the plural naming already has precedent in Expansion I'll try and "correct" them later :)
enum ItemHoldEffects | |
enum ItemHoldEffect |
|
I tried this, but I got buried in |
Just to explain the reason: it's so that if you add a new case to your As a motivating example, consider something like script commands. If we had an |
I'll PR mrgriffin@c247633 which contains usages of |
oops, sorry 😅 |
Turns hold effects into an enum for easier editing. Also removes a handful of references to functions that no longer exist in
battle_ai_util.h
.Discord contact info
bassoonian